package com.jack.lib.core.ext

import android.telephony.mbms.MbmsErrors
import com.blankj.utilcode.util.GsonUtils

/**
 * author : chong.huang
 * create : 2022/1/4
 * desc   :
 */
fun Any?.toJson() = GsonUtils.toJson(this)

fun Int?.isNullOrEmpty() = this == null || this == 0

fun Float?.isNullOrEmpty() = this == null || this == 0F

fun Double?.isNullOrEmpty() = this == null || this == 0.0

fun Byte?.isNullOrEmpty() = this == null || this == 0.toByte()

fun Short?.isNullOrEmpty() = this == null || this == 0.toShort()
